from PyQt4 import QtGui
from common.constant import initConstant, setAppWindows
from controller.BrowserControllerQt4 import BrowserController
from view.qt4.MainQt4View1 import MyWindow

if __name__ == '__main__':
    import sys
    # app = QtWidgets.QApplication(sys.argv)
    # appWindow = MyWindow()
    # setAppWindows(appWindow)
    # initConstant()
    # #启动线程控制
    # appWindow.show()
    # browserController = BrowserController("one")
    # browserController.startMain()
    # # for k in dataOperation:
    # #     val = dataOperation.get(k)
    # #     threading.Thread(target=val[1].run,name=val[1].name).start()
    #
    # sys.exit(app.exec_())
    app = QtGui.QApplication(sys.argv)
    # form = QtGui.QWidget()
    appWindow = MyWindow()
    # setAppWindows(appWindow)
    # initConstant()
    #启动线程控制
    appWindow.show()
    # browserController = BrowserController("one")
    # browserController.startMain()
    sys.exit(app.exec_())
